home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000322_b.stewart@bom.gov.au_Tue Feb 18 08:53:59 EST 2003.msg < prev    next >
Text File  |  2020-01-01  |  4KB  |  80 lines

  1. Article: 14118 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!news.linkpendium.com!ken-transit.news.telstra.net!news.telstra.net!vicpull1.telstra.net!not-for-mail
  3. Message-ID: <3E518707.D695EA5B@bom.gov.au>
  4. From: Bruce Stewart <b.stewart@bom.gov.au>
  5. X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U)
  6. X-Accept-Language: en
  7. MIME-Version: 1.0
  8. Newsgroups: comp.protocols.kermit.misc
  9. Subject: Re: Running multiple kermit scripts on one connection
  10. References: <775a2ab0.0302171458.f8f21f9@posting.google.com> <b2rrbl$ks3$1@watsol.cc.columbia.edu> <3E517E98.D89D779C@bom.gov.au> <b2rvbh$nnc$1@watsol.cc.columbia.edu>
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. Lines: 58
  14. Date: Tue, 18 Feb 2003 12:06:15 +1100
  15. NNTP-Posting-Host: 134.178.5.131
  16. X-Complaints-To: abuse@telstra.net
  17. X-Trace: vicpull1.telstra.net 1045530156 134.178.5.131 (Tue, 18 Feb 2003 12:02:36 EST)
  18. NNTP-Posting-Date: Tue, 18 Feb 2003 12:02:36 EST
  19. Organization: Customer of Telstra Internet Direct
  20. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14118
  21.  
  22. Well, I tried it from c++. Opening a handle and then tried to run kermit with
  23. the command-line option -l _<device_handle>. It still didn't work giving
  24. the same error message "can't open device".
  25.  
  26. If its in the documentation, I would imagine that its been tested by the kermit
  27. developers. Is their an email with which to contact kermit makers for help?
  28.  
  29. Frank da Cruz wrote:
  30.  
  31. > In article <3E517E98.D89D779C@bom.gov.au>,
  32. > Bruce Stewart  <b.stewart@bom.gov.au> wrote:
  33. > :
  34. > : --------------0E4B00F8CCF00119C91BFB8D
  35. > : Content-Type: text/plain; charset=us-ascii
  36. > : Content-Transfer-Encoding: 7bit
  37. > :
  38. > : OK, that second method sounds like it would do the job. I will give it a try
  39. > : but first I want to ask you another question.
  40. > :
  41. > : I have been looking at the documentation and found the following under
  42. > : Command-line options:
  43. > :
  44. > :  -l _number
  45. > :
  46. > : where number refers to the Windows device handle for a communication
  47. > : connection that has already been opened by another process.
  48. > :
  49. > I thought of suggesting that but to be frank :-) I don't know if Windows
  50. > device handles are valid only within a process tree, or system-wide.
  51. > I suppose it's worth a shot.
  52. >
  53. > : I tried the following to test it:
  54. > : 1-I opened a kermit instance, and opened a connection to com port
  55. > :    2, which is where the modem is connected.
  56. > : 2-I then tried to open another instance of kermit using the follwoing
  57. > :    line:
  58. > :       run k95 -l _\v(ttyfd),
  59. > :
  60. > :       but got the following respose when the other kermit instance opened:
  61. > :
  62. > :       "can't open device",
  63. > :
  64. > : Now, I don't know whether the file descriptor is the same as the
  65. > : windows device handle. Maybe they are totally different. I will try doing
  66. > : it from the program, opening a device handle and passing that into each
  67. > : kermit instance. Hopefully that will work.
  68. > :
  69. > Either the process handle is not valid or else you can't have the same
  70. > device opened for read/write access by two different processes.
  71. > Somebody else might answer later with better information.
  72. >
  73. > Another possibility, of course, is to configure the modem to ignore DTR and
  74. > Kermit to ignore CD.  Then you can open and close the port all you like, but
  75. > then it's no longer straightforward to catch broken connections, and you
  76. > can no longer hang up a connection simply by closing the port.
  77. >
  78. > - Frank
  79.  
  80.